﻿<Page x:Class="SmartSpace.WpfShell.Modules.Dynamic.UpdateTemplateView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="400">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <ToolBar Grid.Row="0">
            <StackPanel Name="_ctlPanelEvent" Orientation="Horizontal">
                <TextBlock Text="选择流转环节" VerticalAlignment="Center"/>
                <ComboBox Name="_ctlListEvent" MinWidth="50" ItemsSource="{Binding Path=Events}">
                    <ComboBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Path=Caption}"/>
                        </DataTemplate>
                    </ComboBox.ItemTemplate>
                </ComboBox>
                <Button Name="_ctlBtnSubmit" Content="提交" Click="_ctlBtnSubmit_Click"/>
            </StackPanel>
            <Button Name="_ctlBtnSave" Content="保存" Click="_ctlBtnSave_Click" />
            <Button Name="_ctlBtnRemove" Content="删除"/>
            <Button Name="_ctlBtnBack" Content="返回" Click="_ctlBtnBack_Click"/>
        </ToolBar>
        <Grid Grid.Row="1">
            <ScrollViewer VerticalScrollBarVisibility="Auto" Background="White" BorderBrush="Black" BorderThickness="2" Margin="5,5,5,5" Padding="0">
                <StackPanel Name="_ctlContainer"/>
            </ScrollViewer>
        </Grid>
    </Grid>
</Page>
